package org.jeecg.modules.books.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: books
 * @Author: xxxx
 * @Date:   2024-03-15
 * @Version: V1.0
 */
@Data
@TableName("books")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="books对象", description="books")
public class Books implements Serializable {
    private static final long serialVersionUID = 1L;

	/**书的 ID*/
	@Excel(name = "书的 ID", width = 15)
    @ApiModelProperty(value = "书的 ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
	/**书名*/
	@Excel(name = "书名", width = 15)
    @ApiModelProperty(value = "书名")
    private String title;
	/**作者*/
	@Excel(name = "作者", width = 15)
    @ApiModelProperty(value = "作者")
    private String author;
	/**出版社*/
	@Excel(name = "出版社", width = 15)
    @ApiModelProperty(value = "出版社")
    private String publisher;
	/**出版日期*/
	@Excel(name = "出版日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出版日期")
    private Date publicationDate;
	/**书的类别*/
	@Excel(name = "书的类别", width = 15)
    @ApiModelProperty(value = "书的类别")
    private String category;
	/**价格*/
	@Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private BigDecimal price;
	/**库存数量*/
	@Excel(name = "库存数量", width = 15)
    @ApiModelProperty(value = "库存数量")
    private Integer stockQuantity;
	/**封面图像的路径或链接*/
	@Excel(name = "封面图像的路径或链接", width = 15)
    @ApiModelProperty(value = "封面图像的路径或链接")
    private String coverImage;
	/**书的描述*/
	@Excel(name = "书的描述", width = 15)
    @ApiModelProperty(value = "书的描述")
    private String description;
	/**书的评分*/
	@Excel(name = "书的评分", width = 15)
    @ApiModelProperty(value = "书的评分")
    private Integer rating;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
